Unique Paths Ii - Leetcode 63 - Python